home *** CD-ROM | disk | FTP | other *** search
- XMOBUF
- An Xmodem Protocol Terminal
- For the Commodore 64
- First a few Thank-yous for people who made this program possible. We all owe
- alot to Ward Christensen who came up with the protocol in the first place.
- Karl Schmidt deserves much credit for trying to code it in the first place. I
- want to thank my good friend Robert Shaw, who endured many agonizing hours
- while we worked out the 64 to 64 mode. Dick Press provided the non CBM BBS
- where most of the alfa testing was done against TBBS software running on a
- TRS-80. Frank Prindle provided some operating system hints that make the
- protocol run accurately and some hints on approaches to use in constructing the
- buffer. Deb! Christensen for her SEQ reader, and her enthusiastic
- encouragement to go on and finish it. Steve Taylor for some pointers on what
- the compiler might or might not like. Bill Eisenhower for helping Beta test
- it. And everyone who provided feedback on stuff I missed in alfa/beta testing
- it, including Rick Sterling, Deepak Midha, Preston Tuchman, and Jim Nicholson.
- GENERAL CONSIDERATIONS
- This program has been designed with the casual user in mind. The entry screen
- gives the user a choice of accepting the default colors (black with white
- characters) or changing them. If you wish to use b&w, then any key will bring
- up the next prompt. <N> brings up a prompt to enter the CBM colors of your
- choice for character, border, and background color.
- Black ..... 0 Orange .... 8
- White ..... 1 Brown ..... 9
- Red ....... 2 Lt. Red ...10
- Cyan ...... 3 Lt. Gray ..11
- Purple .... 4 Med Gray ..12
- Green ..... 5 Lt. Green .13
- Blue ...... 6 Lt. Blue ..14
- Yellow .... 7 Dark Gray .15
- The next prompt gives you a choice of modes - <1> Bulletin Board or <2> 64 to
- 64. For most applications, the bulletin board mode is fine, and sets the
- system for full duplex, no parity. The 64 to 64 mode is designed specifically
- for use between C64s. It sets software half duplex so that it will work with
- any modem configuration. You do not need to set the modem for half duplex as
- well.
- The second screen prompts for a baud rate choice to be made. <3> for 300 and
- <1> for 1200 so the choice becomes automatic with use. If you are using a CBM
- 1650 modem, your only choice is 300 baud. For modems connected via an RS232
- adapter, XMOBUF will run smoothly at 1200 baud. If your modem understands
- hayes style modem commands, the terminal program will automatically reset the
- modem to your choice of speeds.
- Following a short delay while the translation tables are set up and program
- variables are defined, you will be presented the main terminal screen, and you
- are ready to communicate. Two menus are available from this screen. Pressing
- Function Key 1 <F1> will bring up the main menu. Please examine it before your
- first use of the program. Most functions are self explanatory. The last
- sentence on the bottom of the menu changes in 64 to 64 mode to remind you that
- the sending side goes to Upload before the receiving side goes to Download.
- Pressing <F3> from the terminal mode will bring up the Buffer control menu. It
- is also listed on the main menu for convenience.
- BUFFER CONTROL
- XMOBUF uses xon-xof flow control to keep up at high speed, and will work well
- with any host that respects xon-xof. If you are having problems with
- information being garbled, it is possible that the host is not observing the
- xon-xof convention. This should not pose a problem at 300 baud as compiling
- gives the program sufficient speed to keep up. Provision has been made to
- redisplay the buffer, and there are several ways to see what is in the buffer.
- You can print the buffer to the modem after your session, or you can save it to
- disk and then read it using the built-in SEQuential file reader.
- 64 to 64 mode
- In 64 to 64 mode, the terminal sets half duplex, and provides the echo of what
- you type. There are cues sent as each 64 changes modes to keep the other
- person posted. Each of these cues is preceeded by a pair of semicolons (;;)
- and each is self explanatory. As the other operator checks disk directories or
- prepares to send a file, you are kept informed. The 64 to 64 mode should not
- be used with any host that provides echoing from the host as you will see
- double characters from everything you type.
- A Little Bit About .BIN and .IMG Files
- When you upload a program file to any host, the file you are sending with
- XMODEM is a Binary file. Compuserve uses the image designator to denote a file
- uploaded with Vidtex. If you download an image file from Compuserve using
- XMODEM, there will be 9 extra characters sent as a header. XMOBUF strips those
- first 9 characters and ignores them, permitting transfer of .IMG files to your
- computer. It is up to you to ensure that the file you are downloading will
- work on your computer, as XMOBUF does not answer any of Compuserves automatic
- terminal queries, and will not automatically identify itself to Compuserve.
- To download a binary or image file on CompuServe, simply take the download
- option as you BROwse a section, and CompuServe will ask which protocol you wish
- to use. Select the XMODEM option, and CompuServe will ask if you wish to use
- ASCII or BINARY. Choose BINARY. CompuServe will then announce that it is
- ready to begin. Press <F1> to bring up the menu, choose <2> Download, give the
- file a name at the prompt and tell it whether it is a <P>rogram or <S>equential
- file, and sit back and relax. Because of packet switching, you may find that
- you get more errors during protocol transfers on CompuServe than from your
- local BBS. The best cure for this is tdo come back during off-peak times when
- CompuServe is feeling better.
- The Buffer
- The buffer control menu is available from almost any part of the program by
- pressing <F3>. Loading and saving the buffer is a painfully slow process.
- Perhaps some kind soul with a sound knowledge of m/l will rewrite it soon. The
- remaining buffer functions all work well, and a little experimentation should
- make them clear.
- Source File
- The source code for this program has been uploaded to the CBM Programmers SIG
- as a .SEQ file to preclude its being inadvertantly taken down by a novice who
- might try to run it in interpreted BASIC. As written, it will not run, becuase
- BASIC has insufficient workspace. In order to make the buffer as large as
- possible, memory is repartitioned, and in the compiled version, BASIC is left a
- mere 182 bytes of workspace. With only this much space to play with, garbage
- collects occur regularly, but a BLITZ garbage collect seems to take about 3
- milliseconds, and is seldom even perceptible. Those who can take down the .SEQ
- file of the source and convert it, and who have access to a compiler, are
- welcome to improve it in any way.
- Questions or Comments
- Questions or comments may be directed to
- Chris Kaiser 70036,1604
- My preference is for a note on any of the CBM sigs, but I look at Email
- sometimes, too. o
- Chris Kaiser 70036,1604
- My preferenc